<?php
include_once'../classeBDD/connectBdd.php';
                    $sql = sql::connect();


$mail = htmlentities(addslashes($_POST['p']));
if (!empty($mail)) {
$requery = $sql->query("select * from utilisateur where mail='".$mail."'");
echo (($row = $sql->num_rows($requery)) ? 'FAIL' : 'OK');
}
?>
